<div class="accordion" id="accordionExample">

  <div class="card">
    <div class="card-header" id="headingOne">
      <h2 class="mb-0">
        <button class="btn btn-link" type="button" data-toggle="collapse"  data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
          收货地址
        </button>
      </h2>
    </div>

    <div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordionExample">
      <div class="card-body">
        @foreach(Auth::user()->addresses as $v)
          <div class="p-2 row">
            <div class="col-sm-1 text-right">
              <input type="radio" @if($v->is_default) checked @endif name="address_id" value="{{$v->id}}">
            </div>
            <div class="col-sm-8">
              {{ $v->full_address }}
            </div>
          </div>
        @endforeach
      </div>
    </div>
  </div>

  <div class="card">
    <div class="card-header" id="headingTwo">
      <h2 class="mb-0">
        <button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
          支付方式
        </button>
      </h2>
    </div>

    <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
      <div class="card-body">

        @foreach(App\Models\Payment::all() as $v)
          <div class="p-2 row">
            <div class="col-sm-1"></div>
            <div class="col-sm-8">
                <input type="radio" name="payment_method" value="{{$v->id}}">{{$v->name}}
            </div>
          </div>
        @endforeach

        <p>
          <input type="text" name="remark" class="form-control" placeholder="备注留言">
        </p>
      </div>
    </div>

  </div>



  <div class="card">
    <div class="card-header" id="headingThree">
      <h2 class="mb-0">
        <button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
          提货方式
        </button>
      </h2>
    </div>
    <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample">
      <div class="card-body">
        @foreach(App\Models\Delivery::all() as $v)
        <div class="p-2 row">
            <input type="radio" name="deliver_type" value="{{$v->id}}">{{$v->name}}
        </div>
        @endforeach
      </div>
    </div>
  </div>
</div>




<script type="text/javascript">
 
</script>